package cn.iocoder.yudao.module.bpm.convert.formdefinition;

import java.util.*;

import cn.iocoder.yudao.framework.common.pojo.PageResult;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import cn.iocoder.yudao.module.bpm.controller.admin.formdefinition.vo.*;
import cn.iocoder.yudao.module.bpm.dal.dataobject.formdefinition.FormDefinitionDO;

/**
 * 表单定义 Convert
 *
 * @author admin
 */
@Mapper
public interface FormDefinitionConvert {

    FormDefinitionConvert INSTANCE = Mappers.getMapper(FormDefinitionConvert.class);

    FormDefinitionDO convert(FormDefinitionCreateReqVO bean);

    FormDefinitionDO convert(FormDefinitionUpdateReqVO bean);

    FormDefinitionRespVO convert(FormDefinitionDO bean);

    List<FormDefinitionRespVO> convertList(List<FormDefinitionDO> list);

    PageResult<FormDefinitionRespVO> convertPage(PageResult<FormDefinitionDO> page);

    List<FormDefinitionExcelVO> convertList02(List<FormDefinitionDO> list);

}
